package com.hopu.oa.service.impl.UserManageControllerImpl;

import com.hopu.oa.dao.user.UserDao;
import com.hopu.oa.entity.user.AoaUser;
import com.hopu.oa.entity.user.AoaUserLoginRecord;
import com.hopu.oa.service.UserManageService.AoaUserLoginRecordService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AoaUserLoginRecordServiceImpl implements AoaUserLoginRecordService {
    @Autowired
    private UserDao UserDao;

    @Override
    public List<AoaUser> queryAllByLimit(@Param("aoaUser") AoaUser aoaUser, @Param("index") int index, @Param("size") int size) {
        List<AoaUser> aoaUserLoginRecords = UserDao.queryAllByLimit(aoaUser, index, size);
        return aoaUserLoginRecords;
    }
}
